<?php

namespace app\modules\film\service;

use Yii;
use app\common\behaviors\ApiCommonBehavior;
use app\common\base\ApiService;
use app\modules\film\models\Film;
use app\modules\film\models\FilmType;
use app\modules\film\models\TypeOfFilm;
use DateTime;
use PhpOffice\PhpSpreadsheet\Shared\Date;

class TypeOfFilmService extends ApiService
{
    function __construct()
    {
        parent::init();
        $this->model = new TypeOfFilm();
    }

    // public function getAll(){
    //     //return getByCondition(['status' => 1]);
    // }

    // public function getByCondition($condition = ['status' => 1]){
    //     $init = ['=', 'status', 1];
    //     $condition = array_merge($condition, $init);
    //     print_r($condition);die;
    //     $infos = $this->lists($condition);

    //     return $infos;
    // }

}

